import http from '../utils/request.js'

// 交易中心-查询
export function tradingList(data) {
	return http({
		url: '/trading/list',
		method: 'GET',
		data
	});
};

// 交易中心-求购发布
export function productSave(data) {
	return http({
		url: '/trading/productSave',
		method: 'POST',
		data: data
	});
};

// 交易中心-售出
export function productSold(data) {
	return http({
		url: '/trading/productSold',
		method: 'POST',
		data: data
	});
};


// 交易中心-记录
export function infoList(data) {
	return http({
		url: '/trading/infoList',
		method: 'GET',
		data
	});
};

// 交易中心-撤销
export function productRevoke(data) {
	return http({
		url: '/trading/productRevoke',
		method: 'POST',
		data: data
	});
};


// 交易中心-抽成比率
export function commissionRate() {
	return http({
		url: '/trading/commissionRate',
		method: 'GET'
	});
};



